﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using NHibernate.Cfg;

namespace MM.Bootstrapper
{
    public class SessionFactoryProvider
    {
        private readonly Configuration configuration;

        public SessionFactoryProvider() {

            configuration = new Configuration();

            configuration.Configure();
                       
        }

        public ISessionFactory BuildSessionFactory() {

            return configuration.BuildSessionFactory();
        }
    }
}
